package com.juzipi.demo.repository;

import com.juzipi.demo.pojo.Item;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

public interface ItemRepository extends ElasticsearchRepository<Item,Long> {

    //自定义方法
    //根据标题查询
    List<Item> findByTitle(String title);

    //自定义方法
    //根据价格区间查询
    List<Item> findByPriceBetween(Double d1,Double d2);
}
